package com.example.ssss.state;

import android.media.Image;
import android.widget.ImageView;

import androidx.annotation.IdRes;
import androidx.databinding.BindingAdapter;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import org.apache.iotdb.tsfile.read.filter.operator.In;

public class PretestStateViewModel extends ViewModel {

    public MutableLiveData<Boolean> isTested = new MutableLiveData<>();
    public MutableLiveData<Boolean> tempState = new MutableLiveData<>();
    public MutableLiveData<Boolean> alcoholState = new MutableLiveData<>();
    public MutableLiveData<String> testHeadText = new MutableLiveData<>();
    public MutableLiveData<String> tempText = new MutableLiveData<>();
    public MutableLiveData<String> alcoholText = new MutableLiveData<>();

    public void setTempText(String text) {
        tempText.setValue(text);
    }
    public void setAlcoholText(String text) {
        alcoholText.setValue(text);
    }
    public void setHeadText(String text) {
        testHeadText.setValue(text);
    }

    public void setTested(Boolean state){
        isTested.setValue(state);
    }
    public void setTempState(Boolean state){
        tempState.setValue(state);
    }
    public void setAlcoholState(Boolean state){
        alcoholState.setValue(state);
    }
}
